package org.springframework.cloud.netflix.feign.ribbon;

import lombok.Data;

@Data
public class CanaryRule {
    private String service;
    private String host;
    private String port;
    private Long minimum;
    private Long maximum;
    private Comparator comparator;
    private Integer weight = 100;
    private Integer loyalty;

    public enum Comparator {
        LT,LE,EQ,GE,GT,GE_LT,GE_LE,GT_LE,GT_LT;
    }
}
